import axios from './interceptor';

export function adoptData(data:any) {
  return axios.post('/adoption/queryApplication', data);
}

export function createAdopt(data:any) {
  return axios.post('/adoption/apply', data);
}

export function adoptReject(data:any) {
  return axios.post(`/adoption/rejectApply?applicationId=${data.applicationId}&cause=${data.cause}`)
}

export function adoptApprove(data:any) {
  return axios.post(`/adoption/approveApply?applicationId=${data.applicationId}`)
}

export function adoptCancel(data: any) {
  return axios.post(`/adoption/cancelApplication?applicationId=${data.applicationId}`)
}